(function (){
    $.ajax({
        url:'/rest/front/productcategory/selectAllList',
        dataType:'json',
        type:'GET',
        success:function (data) {
            var list=data.data,html='';
            $.each(list,function (i, e) {
                html+='<li><div><span></span><h5>'+e.name+'</h5><span></span></div>' +
                '<img src="/'+e.background+'"><p>'+e.introduce+'</p>' +
                '<a href="../cpzx/cpxl.html?id='+e.id+'">[查看详情]</a></li>'
            });
            $('.product-list').html(html);
        }
    })
})();